package com.qianda.qdminiapp.domain.model.device;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备分润率
 * </p>
 *
 * @author cw
 * @since 2019-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QqdDeviceShareRate extends Model<QqdDeviceShareRate> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备id
     */
    private Long deviceId;

    /**
     * 省级分润率
     */
    private BigDecimal rateProvince;

    /**
     * 城市合伙人分润率
     */
    private BigDecimal rateCity;

    /**
     * 服务商分润率
     */
    private BigDecimal rateService;

    /**
     * 门店负责人分润比
     */
    private BigDecimal rateStoreStaff;

    /**
     * 省级代理商
     */
    private Long provinceAgentId;

    /**
     * 城市合伙人
     */
    private Long cityPartnerId;

    /**
     * 服务商
     */
    private Long serviceProviderId;
    private Long principalId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
